package com.springboot.springboot04aop;

import com.springboot.springboot04aop.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Springboot04AopApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext applicationContext = SpringApplication.run(Springboot04AopApplication.class, args);
        UserService userService = applicationContext.getBean(UserService.class);
        userService.save("张三", 18);
        userService.update("张三", 18);
        applicationContext.close();

    }

}
